import request from "./request";

//首页弹窗
export const indexTan = (params) => {
  return request.get("/index/tan", params);
};
//头部搜索条默认提示
export const search = (params) => {
  return request.get("/so/navtips", params);
};
//首页列表
export const homelist = (params) => {
  return request.get("/index/index", params);
};
// 首页列表
// index/index
export const indexList = (params) => {
  return request.get("/index/index", params);
};
//首页换一换
// id:首页列表的tab字段内id
export const indexExchange = (params) => {
  return request.get("/index/exchange", params);
};
// 所有榜单
// top/index
export const topIndex = (params) => {
  return request.get("/top/index", params);
};
// top/list
export const topList = (params) => {
  return request.get("/top/list", params);
};
/**
 *
 * @param {*} params
 * @returns
 * 首页更多
 * id:首页列表的tab字段内id
 * p:分页页码
 * n:分页大小
 */
export const homeMore = (params) => {
  return request.get("/index/more", params);
};
